package com.fin.zw.intelligentbot.entity;

import lombok.Data;
import org.hibernate.annotations.Table;

import javax.persistence.*;

@Entity
@Table(appliesTo = "verbal_trick", comment = "话术信息")
@Data
public class VerbalTrick extends BaseEntity {

    @Column(columnDefinition = "varchar(100) comment '话术名称'")
    private String name;

    @Column(columnDefinition = "varchar(100) comment '话术名称'")
    private String remark;

    @OneToOne(fetch = FetchType.EAGER)
    @JoinColumn(name = "company_id", columnDefinition = "varchar(64) COMMENT '企业id'")
    private Company company;
}
